<template>
  <div class="consultpart sortPage">
    <van-sticky :offset-top="46">
      <serchCommon></serchCommon>
    </van-sticky>
    <swiperDom :banners="bannerList"></swiperDom>
    <partmorennews></partmorennews>
  </div>
</template>
<script type="text/ecmascript-6">
import partmorennews from "../../components/newslist/loadMoreList";
import serchCommon from "../../components/menuSearch/serchconsult";
import { getbanner } from "../../api/sort";
import swiperDom from "../../components/siwperDom";
export default {
  name: "consultpart",
  components: {
    partmorennews,
    serchCommon,
    swiperDom
  },
  data() {
    return {
      bannerList: [],
      isFirstEnter: false
    };
  },
  methods: {
    getbanners() {
      let obj = {};
      obj.place = this.$route.query.channel;
      getbanner(obj).then(res => {
        if (res.code == "0000") {
          this.bannerList = res.data;
        }
      });
    }
  },
  created() {
    this.getbanners();
  },
  activated() {
    this.$route.meta.keepALive = false;
  }
};
</script>
<style scoped lang="less">
</style>
